<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>聚美优品-美妆商城-首页</title>
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/style.css"/>
		<script src="__PUBLIC__/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="__PUBLIC__/js/header.js" type="text/javascript" charset="utf-8"></script>
	</head>
<body>
<!--公共头部 开始-->
<include file="__PUBLIC__/header.html"/>
<!--公共头部 结束-->

<!--主体部分-->
<div class="new_admall_box">
	<!--菜单和banner图部分-->
	<div class="new_admall_topContent">
		<!--左侧菜单-->
		<div class="menu_left fl">
			<div class="mtsCategory">
				<h3 class="all_category">全部分类</h3>
				<ul class="menu-list">
					<?php foreach($topCate as $k => $v): ?>
					<li class="menu-item">
						<h3 class="new_admall_menu_title"><?php echo $v['cname'] ?></h3>
						<p class="new_admall_menu_cont">
						<?php foreach ($v['son'] as $k2 => $v2): ?>
							<a href="{|U:'Category/index',array('cid'=>$v2[cid])}"><?php echo $v2['cname'] ?></a>
							<?php endforeach ?>
						</p>
						<div class="subc_con" style="display: none;">
							<div class="sub_cat_con">
								<div class="subc_left_area fl">
									<h2 class="subc_left_title">日常<?php echo $v['cname'] ?></h2>
									<div class="subc_left_body">
										<?php foreach ($v['son'] as $k2 => $v2): ?>
										<div class="subc_item">
											<h3 class="subc_item_title fl">
												
												<a class="h3_a" href="{|U:'Category/index',array('cid'=>$v2[cid])}"><?php echo $v2['cname'] ?></a>
											
											</h3>
											<div class="subc_item_body fl">
												<div class="subc_item_area">
													<?php foreach ($v2['son'] as $k3 => $v3): ?>
													<a href="{|U:'Category/index',array('cid'=>$v3[cid])}"><?php echo $v3['cname'] ?></a>
													<?php endforeach ?>
												</div>
											</div>
										</div>
											<?php endforeach ?>
									</div>
								</div>
								<div class="subc_right_area fl">
									<!--隐藏菜单右侧上面-->

									<!--隐藏菜单右侧上面-->
									<!--推荐品牌-->
									<div class="subc_right_bottom">
										<h2 class="subc_right_title">推荐品牌</h2>
										<div class="sub_brand_img">
											<foreach from="$brand" key="$k" value="$v">
												<if value="$k<12">
											<a href="{|U:'Category/index',array('cid'=>$v['cid'])}"><img src="__ROOT__/{$v.logo}" alt="" /></a>
											</if>
											</foreach>
											
									</div>
									<!--推荐品牌-->
								</div>
							</div>
						</div>
					</li>
					<?php endforeach ?>
					<!--循环顶级分类结束-->
				</ul>
			</div>
			<div class="left_tuijianAd">
				<a href=""><img src="__PUBLIC__/images/41273_198_160_002-web.jpg" alt="" /></a>
			</div>
		</div>
		<!--左侧菜单-->
		<!--中间banner图部分-->
		<div class="new_admall_right_area">
			<div class="banner">
				<ul class="new_admall_content">
					<li style="display: block;"><a href="javascript:;"><img src="__PUBLIC__/images/banner1.jpg" alt="" /></a></li>
					<li><a href="javascript:;"><img src="__PUBLIC__/images/banner2.jpg" alt="" /></a></li>
					<li><a href="javascript:;"><img src="__PUBLIC__/images/banner3.jpg" alt="" /></a></li>
					<li><a href="javascript:;"><img src="__PUBLIC__/images/banner4.jpg" alt="" /></a></li>
				</ul>
				<div class="sc_index">
					<a style="background: #d11048;" href="javascript:;"></a>
					<a href="javascript:;"></a>
					<a href="javascript:;"></a>
					<a href="javascript:;"></a>
				</div>
				<a class="banner_pre" href="javascript:;"></a><a class="banner_next" href="javascript:;"></a>
			</div>
			<div class="new_admall_tuijianAd fr">
				<div class="tuijianAd"><a href="{|U:'Index/Category/index/cid/8'}"><img src="__PUBLIC__/images/3/1.jpg" alt="" /></a></div>
				<div class="tuijianAd"><a href="{|U:'Index/Category/index/cid/9'}"><img src="__PUBLIC__/images/3/2.jpg" alt="" /></a></div>
				<div class="tuijianAd"><a href="{|U:'Index/Category/index/cid/10'}"><img src="__PUBLIC__/images/3/3.jpg" alt="" /></a></div>
			</div>
			<div class="brand_wall_switchable">
				<div class="sc_index">
					<foreach from="$BrandsCate" key="$k" value="$v">
					<a href="javascript:;">{$v.bcname}</a>
					</foreach>
					<!--<a href="javascript:;">独家品牌</a>
					<a href="javascript:;">欧美品牌</a>
					<a href="javascript:;">日韩品牌</a>
					<a href="javascript:;">国货品牌</a>
					<a href="javascript:;">洗护品牌</a>-->
					<div class="arrow_line"><s href="javascript:;" class="arrow"></s></div>
				</div>
				<div class="sc_container">
					
					<ul class="sc_list">
						<li>
							<ul class="brand_wall_left">
								<foreach from="$brand" key="$k" value="$v">
									<if value="$v['brands_cate_bcid']==1">
									<li>
										<a href="{|U:'Category/index',array('cid'=>$v['bid'])}"><img src="__ROOT__/{$v.logo}" alt="" /></a>
									</li>
									</if>
								</foreach>
							</ul>
							<div class="brand_wall_right">
								<a href="{|U:'Category/index',array('cid'=>$v['bid'])}"><img src="__PUBLIC__/images/38506_202_202_002-web.jpg" alt="" /></a>
							</div>
						</li>
					</ul>
					
				</div>
				<div class="sc_container">
					<ul class="sc_list">
						<li>
							<ul class="brand_wall_left">
								<foreach from="$brand" key="$k" value="$v">
									<if value="$v['brands_cate_bcid']==2">
									<li>
										<a href="{|U:'Category/index',array('cid'=>$v['bid'])}"><img src="__ROOT__/{$v.logo}" alt="" /></a>
									</li>
									</if>
								</foreach>
							</ul>
							<div class="brand_wall_right">
								<a href="{|U:'Category/index',array('cid'=>$v['bid'])}"><img src="__PUBLIC__/images/38506_202_202_002-web.jpg" alt="" /></a>
							</div>
						</li>
					</ul>
				</div>
				<div class="sc_container">
					<ul class="sc_list">
						<li>
							<ul class="brand_wall_left">
								<foreach from="$brand" key="$k" value="$v">
									<if value="$v['brands_cate_bcid']==3">
									<li>
										<a href="{|U:'Category/index',array('cid'=>$v['bid'])}"><img src="__ROOT__/{$v.logo}" alt="" /></a>
									</li>
									</if>
								</foreach>
							</ul>
							<div class="brand_wall_right">
								<a href="{|U:'Category/index',array('cid'=>$v['bid'])}"><img src="__PUBLIC__/images/38506_202_202_002-web.jpg" alt="" /></a>
							</div>
						</li>
					</ul>
				</div>
				<div class="sc_container">
					<ul class="sc_list">
						<li>
							<ul class="brand_wall_left">
								<foreach from="$brand" key="$k" value="$v">
									<if value="$v['brands_cate_bcid']==4">
									<li>
										<a href="{|U:'Category/index',array('cid'=>$v['bid'])}"><img src="__ROOT__/{$v.logo}" alt="" /></a>
									</li>
									</if>
								</foreach>
							</ul>
							<div class="brand_wall_right">
								<a href="{|U:'Category/index',array('cid'=>$v['bid'])}"><img src="__PUBLIC__/images/38506_202_202_002-web.jpg" alt="" /></a>
							</div>
						</li>
					</ul>
				</div>
				<div class="sc_container">
					<ul class="sc_list">
						<li>
							<ul class="brand_wall_left">
								<foreach from="$brand" key="$k" value="$v">
									<if value="$v['brands_cate_bcid']==5">
									<li>
										<a href="{|U:'Category/index',array('cid'=>$v['bid'])}"><img src="__ROOT__/{$v.logo}" alt="" /></a>
									</li>
									</if>
								</foreach>
							</ul>
							<div class="brand_wall_right">
								<a href="{|U:'Category/index',array('cid'=>$v['bid'])}"><img src="__PUBLIC__/images/38506_202_202_002-web.jpg" alt="" /></a>
							</div>
						</li>
					</ul>
				</div>
				<div class="sc_container">
					<ul class="sc_list">
						<li>
							<ul class="brand_wall_left">
								<foreach from="$brand" key="$k" value="$v">
									<if value="$v['brands_cate_bcid']==6">
									<li>
										<a href="{|U:'Category/index',array('cid'=>$v['bid'])}"><img src="__ROOT__/{$v.logo}" alt="" /></a>
									</li>
									</if>
								</foreach>
							</ul>
							<div class="brand_wall_right">
								<a href="{|U:'Category/index',array('cid'=>$v['bid'])}"><img src="__PUBLIC__/images/38506_202_202_002-web.jpg" alt="" /></a>
							</div>
						</li>
					</ul>
				</div>
				<div class="sc_change">
					<a class="sc_prev" href="javascript:;"></a><a class="sc_next" href="javascript:;"></a>
				</div>
			</div>
		</div>
		<!--中间banner图部分-->
	</div>
	<!--菜单和banner图部分-->
	<div class="clear"></div>
	<!--精选活动部分-->
	<div class="newmall_ongoing">
		<div class="newmall_ongoing_title">精选活动</div>
		<ul class="ongoingAlreadyList">
			<foreach from="$goods" key="$k" value="$v">
			<li class="ongoing_area">
				<a href="{|U:'Content/index',array('gid'=>$v['gid'])}">
					<div class="big_img">
						<div class="all_bicon_box"></div>
						<img src="__ROOT__/{$v.figure}" alt="" />
						<!--<p class="count_time">距活动结束 00天 23时 44分 15秒</p>-->
					</div>
					<div class="desc_area">
						<div class="left_area fl">
							<p class="ongoing_item_title">{$v.gname|hd_substr:10,'...'}</p>
				            <p class="ongoing_item_sub_title">{$v.msg|hd_substr:10,'...'}</p>
			                <p class="ongoing_item_discount_desc">满<em><em>300</em></em>送<em><em>30</em></em></p>
						</div>
						<div class="right_area fr"><img src="__ROOT__/{$v.logo}" alt="" /></div>
					</div>
				</a>
			</li>
			</foreach>

		</ul>
	</div>
	<!--精选活动部分-->
</div>
<!--主体部分-->
<!--子系统内容区域代码 end-->
<div class="clear"></div>
<!--/-->
<!--/-->
<!--公共底部开始-->
<include file="__PUBLIC__/footer.html"/>
<!--公共底部结束-->
	</body>
</html>
